﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CurrentCostTest
{
    //Class holding hard coded sample reading data from a real current cost meter to use in testing
    public class CurrentCostSampleReadings
    {
        public static  DateTime CC_READING_DATE = new DateTime(2009, 12, 7);

        public static int CC_EXPECTED_SENSORID = 0;

        #region monthly

        public  const string CC_MONTHLY_XML = @"<msg>
  <src>CC128-v0.11</src>
  <dsb>00069</dsb>
  <time>07:19:20</time>
  <hist>
    <dsw>00069</dsw>
    <type>1</type>
    <units>kwhr</units>
    <data>
      <sensor>0</sensor>
      <m002>247.750</m002>
      <m001>331.000</m001>
    </data>
    <data>
      <sensor>1</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>2</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>3</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>4</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>5</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>6</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>7</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>8</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
    <data>
      <sensor>9</sensor>
      <m002>0.000</m002>
      <m001>0.000</m001>
    </data>
  </hist>
</msg>
";

        #endregion

        #region Hourly
        public  const string CC_HOURLY_XML = @"<msg>
  <src>CC128-v0.11</src>
  <dsb>00069</dsb>
  <time>07:16:20</time>
  <hist>
    <dsw>00069</dsw>
    <type>1</type>
    <units>kwhr</units>
    <data>
      <sensor>0</sensor>
      <h010>0.422</h010>
      <h008>0.268</h008>
      <h006>0.164</h006>
      <h004>0.250</h004>
    </data>
    <data>
      <sensor>1</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>2</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>3</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>4</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>5</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>6</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>7</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>8</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
    <data>
      <sensor>9</sensor>
      <h010>0.000</h010>
      <h008>0.000</h008>
      <h006>0.000</h006>
      <h004>0.000</h004>
    </data>
  </hist>
</msg>
";


        #endregion

        #region Daily
        public  const string CC_DAILY_XML = @"<msg>
  <src>CC128-v0.11</src>
  <dsb>00069</dsb>
  <time>07:19:10</time>
  <hist>
    <dsw>00069</dsw>
    <type>1</type>
    <units>kwhr</units>
    <data>
      <sensor>0</sensor>
      <d004>6.796</d004>
      <d003>11.515</d003>
      <d002>5.531</d002>
      <d001>8.007</d001>
    </data>
    <data>
      <sensor>1</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>2</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>3</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>4</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>5</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>6</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>7</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>8</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
    <data>
      <sensor>9</sensor>
      <d004>0.000</d004>
      <d003>0.000</d003>
      <d002>0.000</d002>
      <d001>0.000</d001>
    </data>
  </hist>
</msg>
";

        #endregion

        #region Realtime
        //slightly modified - to return 1 as the sensor (0 is the default, easy to write meaningless test)
        public  const string CC_REALTIME_XML = @"<msg>
  <src>CC128-v0.11</src>
  <dsb>00069</dsb>
  <time>00:13:11</time>
  <tmpr>19.0</tmpr>
  <sensor>1</sensor>
  <id>00077</id>
  <type>1</type>
  <ch1>
    <watts>00145</watts>
  </ch1>
</msg>
";


        #endregion
    
    }
}
